<?php
/**
 * Created by PhpStorm.
 * User: xiari336
 * Date: 2019/3/21
 * Time: 16:20
 */
//具体被观察者 服务端
class Server extends Subject{
    public function publish(){
        echo "今天天气很好，我发布了更新包".PHP_EOL;
        $this->notifyObservers();
    }

}